package com.huazi.eduservice.service;

import com.huazi.commonutils.CommentResult;
import com.huazi.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.huazi.eduservice.vo.CourseWebVo;
import com.huazi.eduservice.vo.FinalInfo;
import com.huazi.eduservice.vo.FrontCourseInfo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author huazi
 * @since 2021-03-18
 */
public interface EduCourseService extends IService<EduCourse> {
      int addCourseInfo(EduCourse course);
      FinalInfo getFinalInfo(String id);
      void updateStatus(String id);
      CommentResult getIndexCourses(Integer current, Integer size);
      CommentResult getCourseLists(Integer current, Integer size);
      //1.条件组合分页查询
      CommentResult getCourseFrontList(Integer current, Integer size, FrontCourseInfo courseInfo);
      //根据课程id获取课程详情信息
      CourseWebVo getBaseCourseInfo(String id);
}
